package com.san.hkhospital.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.san.hkhospital.entity.Permission;
import com.san.hkhospital.mapper.PermissionMapper;
import com.san.hkhospital.entity.PermissionExample;
import com.san.hkhospital.service.PermissionService;
/**
 * ClassName:PermissionServiceImpl
 * PackageName:com.san.hkhospital.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 14:38
 * 
 */
 
 
@Service
public class PermissionServiceImpl implements PermissionService{

    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public long countByExample(PermissionExample example) {
        return permissionMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PermissionExample example) {
        return permissionMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer pmsId) {
        return permissionMapper.deleteByPrimaryKey(pmsId);
    }

    @Override
    public int insert(Permission record) {
        return permissionMapper.insert(record);
    }

    @Override
    public int insertSelective(Permission record) {
        return permissionMapper.insertSelective(record);
    }

    @Override
    public List<Permission> selectByExample(PermissionExample example) {
        return permissionMapper.selectByExample(example);
    }

    @Override
    public Permission selectByPrimaryKey(Integer pmsId) {
        return permissionMapper.selectByPrimaryKey(pmsId);
    }

    @Override
    public int updateByExampleSelective(Permission record,PermissionExample example) {
        return permissionMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Permission record,PermissionExample example) {
        return permissionMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Permission record) {
        return permissionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Permission record) {
        return permissionMapper.updateByPrimaryKey(record);
    }

}
